<template>
	<!-- 帮助详情 -->
	<view class="help-detail">
		<nav-bar :title="i18n.common.detail" @_back="_back" />
		<detail :obj="info" />
	</view>
</template>

<script>
	import minix from '@/utils/minix.js'
	import Detail from '@/components/Detail/index.vue'
	import { newsDetail } from '@/api/index.js'
	export default {
		mixins: [minix],
		components: {
			Detail
		},
		computed: {
			i18n() {
				return this.$t('message');
			},
		},
		onLoad(data) {
			this.loadList(data.id)
		},
		data() {
			return {
				info: {}
			}
		},
		methods: {
			async loadList(id) {
				let {error, res} = await newsDetail({id: id});
				if (error) return;
				this.isEmpty = true;
				this.info = res || {};
			}
		}
	}
</script>

<style>
</style>
